package com.wn.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @program: pms
 * @description:工艺流程卡表实体类
 * @author: ZC
 * @create: 2022.10.19/14点21分
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class Process {
    private int id;
    @NotEmpty(message = "产品名称不能为空")
    private String name;//产品名称
    @NotEmpty(message = "工艺编号不能为空")
    private String processNumer;//工艺编号
    @NotNull(message = "物料档案编号不能为空")
    private Material stockId;//物料档案编号  与物料档案ID对应
    private String filePath;//文件路径
}
